﻿/*
 * Rappelz: Endless Odyssey - The first free open source Rappelz server emulator
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */

// adapted from

/*
 * DAWN OF LIGHT - The first free open source DAoC server emulator
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rappelz.GameServer
{
    public static class Constants
    {
        /// <summary>
        /// The size of the send buffer for a client socket.
        /// </summary>
        public const int SendBufferSize = 16 * 1024;

        /// <summary>
        /// The size of the receive buffer for a client socket.
        /// </summary>
        public const int ReceiveBufferSize = 16 * 1024;

        /// <summary>
        /// Whether or not to disable the Nagle algorithm. (TCP_NODELAY)
        /// </summary>
        public const bool UseNoDelay = true;

        /// <summary>
        /// The default encoding to use for all string operations in packet writing or reading.
        /// </summary>
        public static readonly Encoding DefaultEncoding = Encoding.Default;

        public static readonly long MAX_GOLD_FOR_INVENTORY = 100000000000;
        public static readonly long MAX_GOLD_FOR_STORAGE = 100000000000;
        public static readonly long MAX_JP = 100000000000;

        public static readonly int[] s_chip_limit_level = {0,20,50,80,100,120,150,180,200};

    }
}
